<?php
namespace Admin\Model;
use Think\Model;
class PurchaseStateModel extends Model {
	public $page; //当前页
	public $perpage; //每页显示
	public $brand_id; //ID
	public $post; //提交的信息 数组
	public $table='zjy_purchase_state';
	public $ids; //IDs 数组，用于删除

	//获取列表
	public function get_purchase_state_list()
	{
		$Model=M("Purchase_state");
		$list=$Model->field('ps_id,ps_name')->where('ps_is_show=1')->order('ps_sort asc,ps_id desc')->select();
		//print_r($list);exit;
		return $list;
	}

}